package com.data.springbootdynamicdata.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/***
 *  Created with IntelliJ IDEA.
 *  Author:  wenlin
 *  Date:  2018/4/24 9:45
 *  Description:
 **/
@Controller
@RequestMapping("/user")
public class TestController {

    @GetMapping("test")
    private String get(){
        return  "success";
    }
    @GetMapping("/hello")
    public String helloHtml() {
        return "/index";
    }
}
